import request from '@/utils/request'

// 获取未审核的流程
export function getUnAuditList(data) {
  return request({
    url: '/application/getUnAuditList',
    method: 'get',
    params: { username: data.username, startTime: data.startTime, endTime: data.endTime }
  })
}

// 获取已审核的流程
export function getApprovList(data) {
  return request({
    url: '/application/getApprovList',
    method: 'get',
    params: { userId: data.userId, username: data.username, startTime: data.startTime, endTime: data.endTime }
  })
}

export function changeStatus(data) {
  return request({
    url: '/application/changeStatus',
    method: 'get',
    params: { applicationId: data.applicationId, num: data.num }
  })
}

export function isUserInProcess(data) {
  return request({
    url: '/application/isUserInProcess',
    method: 'get',
    params: { userId: data.userId }
  })
}

export function getField() {
  return request({
    url: '/skill/getField',
    method: 'get'
  })
}
